﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

namespace Bussiness_Objects
{
    public class ThamSo : BusinessObjects
    {
        public ThamSo()
        {

        }

        public ThamSo(string _tenTS, int _giaTri)
        {
            TenThamSo = _tenTS;
            GiaTri = _giaTri;
        }

        public override void SetParameterInsert()
        {
            
        }

        public override void SetParameterUpdate()
        {
            parms = new object[2];
            SqlParameter _parm = new SqlParameter(parTemThamSo, TenThamSo);
            parms[0] = _parm;

            _parm = new SqlParameter(parGiaTri, GiaTri);
            parms[1] = _parm;
        }

        public string TenThamSo { get; set; }
        private const string parTemThamSo = "@TenThamSo";

        public int GiaTri { get; set; }
        private const string parGiaTri = "@GiaTri";
    }
}
